package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SkplLabelMapper;
import com.ruoyi.system.domain.SkplLabel;
import com.ruoyi.system.service.ISkplLabelService;

/**
 * 标签Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-06-15
 */
@Service
public class SkplLabelServiceImpl implements ISkplLabelService 
{
    @Autowired
    private SkplLabelMapper skplLabelMapper;

    /**
     * 查询标签
     * 
     * @param labelId 标签主键
     * @return 标签
     */
    @Override
    public SkplLabel selectSkplLabelByLabelId(String labelId)
    {
        return skplLabelMapper.selectSkplLabelByLabelId(labelId);
    }

    /**
     * 查询标签列表
     * 
     * @param skplLabel 标签
     * @return 标签
     */
    @Override
    public List<SkplLabel> selectSkplLabelList(SkplLabel skplLabel)
    {
        return skplLabelMapper.selectSkplLabelList(skplLabel);
    }

    /**
     * 新增标签
     * 
     * @param skplLabel 标签
     * @return 结果
     */
    @Override
    public int insertSkplLabel(SkplLabel skplLabel)
    {
        return skplLabelMapper.insertSkplLabel(skplLabel);
    }

    /**
     * 修改标签
     * 
     * @param skplLabel 标签
     * @return 结果
     */
    @Override
    public int updateSkplLabel(SkplLabel skplLabel)
    {
        return skplLabelMapper.updateSkplLabel(skplLabel);
    }

    /**
     * 批量删除标签
     * 
     * @param labelIds 需要删除的标签主键
     * @return 结果
     */
    @Override
    public int deleteSkplLabelByLabelIds(String[] labelIds)
    {
        return skplLabelMapper.deleteSkplLabelByLabelIds(labelIds);
    }

    /**
     * 删除标签信息
     * 
     * @param labelId 标签主键
     * @return 结果
     */
    @Override
    public int deleteSkplLabelByLabelId(String labelId)
    {
        return skplLabelMapper.deleteSkplLabelByLabelId(labelId);
    }
}
